
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Building a DataWindow object </TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="pbugp162.htm">Previous</A>&nbsp;&nbsp;<A HREF="pbugp164.htm" >Next</A>
<!-- End Header -->
<A NAME="CFHCIDFC"></A><h1>Building a DataWindow object </h1>
<A NAME="TI4960"></A><p>You use a wizard to build a new DataWindow object. To create a DataWindow object or
use the DataWindow painter, you must be connected to the database whose
data you will be accessing. When you open the DataWindow painter or select
a data source in the wizard, PowerBuilder connects you to the DBMS and
database you used last. If you need to connect to a different database,
do so before working with a DataWindow object.</p>
<p><img src="images/note.gif" width=17 height=17 border=0 align="bottom" alt="Note"> <span class=shaded>Column limit</span> <A NAME="TI4961"></A>There is a limit of 1000 on the number of columns in a DataWindow object.</p>
<A NAME="TI4962"></A><p>For information about changing your database
connection, see <i>Connecting to Your Database.</i>
</p>
<A NAME="CDCBDEEB"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To create a new DataWindow object:</p>
<ol><li class=fi><p>Select File&gt;New from the menu
bar and select the DataWindow tab.</p></li>
<li class=ds><p>If there is more than one target in the workspace,
select the target where you want the DataWindow to be created from
the drop-down list at the bottom of the dialog box.</p></li>
<li class=ds><p>Choose a presentation style for the DataWindow object.</p><p>The presentation style determines how the
data is displayed. See <A HREF="pbugp162.htm#CFHBFAAA">"Choosing a presentation
style "</A>. When you choose the presentation
style, the appropriate DataWindow object wizard starts.</p></li>
<li class=ds><p>If you want data to be retrieved in the Preview
view when the DataWindow object opens, select the Retrieve on Preview check
box.</p></li>
<li class=ds><p>Define the data source.</p><p>See <A HREF="pbugp164.htm#CFHDGEIA">"Selecting a data source "</A>.</p></li>
<li class=ds><p>Choose options for the DataWindow object and click Next.</p><p>See <A HREF="pbugp171.htm#CFHCIJGH">"Choosing DataWindow object-wide
options "</A>.</p></li>
<li class=ds><p>Review your specifications and click Finish.</p><p>The DataWindow object displays in the Design view. </p></li>
<li class=ds><p>Save the DataWindow object in a library.</p></li></ol>
<br>
